<?php
if(($file=fopen("01.php","r"))===false)
{   //失败提示语句
    echo ("打开失败");
}
else{
    echo "打开成功";
    $rs=fclose($file);
    if($rs)
    {
        echo "\n 关闭成功";
    }
    else{
        echo "\n 关闭失败";
    }
}

?>